package com.retail.lottery.colalottery.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {
    PARAM_ERROR(40001, "参数错误"),
    UNAUTHORIZED(40101, "未授权"),
    FORBIDDEN(40301, "禁止访问"),
    NOT_FOUND(40401, "资源不存在"),
    REPEAT_OPTION(40501, "操作过于频繁"),
    SYSTEM_ERROR(40502, "系统繁忙，请重新操作"),
    SERVER_ERROR(50001, "服务器内部错误"),
    PARAMS_ERROR(50006, "参数异常"),
    DATABASE_ERROR(50002, "数据操作错误"),
    GET_ACCESS_TOKEN_FAIL(50003, "获取accessToken失败"),
    POST_FAIL(50004, "请求可乐系统失败"),
    STATUS_FAIL(50004, "异常订单状态");

    private final Integer code;
    private final String message;

}
